import axios from '../util/http'
//获取 分单
export function getBill(query) {
	return axios({
		method:'get',
		url:`/wechat/sanbao-shifu/bill`,
		data: query
	})
}
// 新增子账号
export function addSon(query) {
	return axios({
		method:'post',
		url:`/wechat/sanbao-shifu/addSon`,
		data: query
	})
}
//查询子账号
export function getSon(query) {
	return axios({
		method:'get',
		url:`/wechat/sanbao-shifu/getSon`,
		data: query
	})
}
//编辑子账号
export function alterSon(query) {
	return axios({
		method:'post',
		url:`/wechat/sanbao-shifu/alterSon`,
		data: query
	})
}
//新增分单
export function addBill(query) {
	return axios({
		method:'post',
		url:`/wechat/sanbao-shifu/addBill`,
		data: query
	})
}
//分单统计表
export function individual(query) {
	return axios({
		method:'post',
		url:`/wechat/sanbao-shifu/individual`,
		data: query
	})
}

//取消分单
export function canelBill(query) {
	return axios({
		method:'get',
		url:`/wechat/sanbao-shifu/canel-Bill`,
		data: query
	})
}

//删除子账号
export function detelSon(query) {
	return axios({
		method:'get',
		url:`/wechat/sanbao-shifu/detelSon`,
		data: query
	})
}